-
Notifications
You must be signed in to change notification settings - Fork 109
New example cases #945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
New example cases #945
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds two new example cases for supersonic forward- and backward-facing steps, fixes a bug in the deallocation logic for mixed CBC boundary conditions, and introduces new golden-metadata files for the corresponding tests.
- Added
case.py
andREADME.md
for 2D forward-facing step example - Added
case.py
andREADME.md
for 2D backward-facing step example - Fixed deallocation conditions in
s_finalize_cbc_module
for mixed CBC boundaries - Introduced new golden-metadata for the two example tests
Reviewed Changes
Copilot reviewed 7 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
tests/67C777D8/golden-metadata.txt | Golden metadata for backward-facing step test |
tests/665682FA/golden-metadata.txt | Golden metadata for forward-facing step test |
src/simulation/m_cbc.fpp | Adjusted CBC deallocation logic to cover mixed boundary cases |
examples/2D_forward_facing_step/case.py | New forward-facing step configuration script |
examples/2D_forward_facing_step/README.md | Documentation for forward-facing step example |
examples/2D_backward_facing_step/case.py | New backward-facing step configuration script |
examples/2D_backward_facing_step/README.md | Documentation for backward-facing step example |
Comments suppressed due to low confidence (2)
examples/2D_backward_facing_step/README.md:1
- [nitpick] The README is missing a reference or background on the backward‐facing step case. Consider adding a citation or brief description of the physical setup to mirror the forward‐facing example.
# Backward Facing Step (2D)
src/simulation/m_cbc.fpp:1623
- The new deallocation logic covers mixed CBC boundaries, but there are no unit tests exercising a case where one boundary is in range and the other is out of range. Adding a focused test for mixed
bc_x
orbc_y
values would help prevent regressions.
@:DEALLOCATE(vel_in, vel_out, pres_in, pres_out, Del_in, Del_out, alpha_rho_in, alpha_in)
User description
Description
This PR adds example cases for supersonic forward and backward facing step and fixes a minor bug in deallocation of CBC variables in mixed cases.
Type of change
Please delete options that are not relevant.
Scope
How Has This Been Tested?
I've built the documentation locally to ensure the images appear correctly on the examples page and ran both new cases on GPUs.
examples/2D_backward_facing_step/
test2.mp4
examples/2D_forward_facing_step/
test2.mp4
PR Type
Enhancement, Bug fix
Description
Add two new supersonic step flow examples
Fix CBC variable deallocation logic in mixed cases
Include documentation and test metadata for examples
Changes diagram
Changes walkthrough 📝
1 files
Fix CBC coefficient deallocation logic
2 files
Add backward facing step case configuration
Add forward facing step case configuration
2 files
Add backward facing step documentation
Add forward facing step documentation
2 files
Add test metadata for backward step
Add test metadata for forward step
2 files